package com.ruoyi.db.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库模型之库信息对象 db_db
 * 
 * @author ruoyi
 * @date 2022-07-10
 */
public class DbDb extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 库名 */
    @Excel(name = "库名")
    private String dbName;

    /** 库描述 */
    @Excel(name = "库描述")
    private String dbDesc;

    /** 字符集 */
    @Excel(name = "字符集")
    private String dbCharacter;

    /** 库描述 */
    @Excel(name = "库描述")
    private String dbCollate;

    /** 状态（0正常 1已建模） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建者ID */
    private String createId;

    /** 更新者ID */
    private String updateId;

    /** 乐观锁 */
    private Integer version;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDbName(String dbName) 
    {
        this.dbName = dbName;
    }

    public String getDbName() 
    {
        return dbName;
    }
    public void setDbDesc(String dbDesc) 
    {
        this.dbDesc = dbDesc;
    }

    public String getDbDesc() 
    {
        return dbDesc;
    }
    public void setDbCharacter(String dbCharacter) 
    {
        this.dbCharacter = dbCharacter;
    }

    public String getDbCharacter() 
    {
        return dbCharacter;
    }
    public void setDbCollate(String dbCollate) 
    {
        this.dbCollate = dbCollate;
    }

    public String getDbCollate() 
    {
        return dbCollate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dbName", getDbName())
            .append("dbDesc", getDbDesc())
            .append("dbCharacter", getDbCharacter())
            .append("dbCollate", getDbCollate())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("version", getVersion())
            .toString();
    }
}
